package cn.adkii.springframework.aop;

/**
 * @author malingdi
 * @description 定义匹配类，用于切点找到给定的接口和目标类
 * @date 2023/11/28 18:43
 */
public interface ClassFilter {

    /**
     * Should the pointcut apply to the given interface or target class?
     * @param clazz the candidate target classes
     * @return whether the advice should apply to the given target classes
     */
    boolean matches(Class<?> clazz);
}
